<{foreach from = $list item=item}>
<{if $item.status eq $CODE_STATUS_USED}><{*已使用*}>
    <li class="xy-row vAlignCenterRow ticketItem ticketItem2">
<{else if $item.status eq $CODE_STATUS_OUTDATE}><{*过期*}>
    <li class="xy-row ticketItem ticketItem3">
<{else}><{*正常*}>
    <li class="xy-row ticketItem vAlignCenterRow " onclick="window.location.href='<{u('info')}>&id=<{$item.id}>&table=<{$item.table}>'">
<{/if}>
    <div class="firstElem">
        <img class="ticketItemElem" src="<{$preUploadUrl}><{$item.img}>"/>
    </div>
    <div class="secondElem">
        <div class="hAlignLeftDiv" style="padding-left:2rem;">
            <div class="autoEllipsisLabel blackFont" style="margin-bottom:0.8rem"><{$item.cardTitle}></div>
            <div class="fontSizeM" style="margin-bottom:0.8rem">有效期至：<{'Y-m-d'|date:$item.endTimestamp}></div>
            <{if $item.table eq 'thirdcoupon'}>
                <{if $item.type eq 1}><{*代金券*}>
                    <{if $item.status eq $CODE_STATUS_USED or $item.status eq $CODE_STATUS_OUTDATE}><{*已使用*}>
                        <div class="fontSizeM grayFont">不可使用</div>
                    <{else}>
                        <div class="fontSizeM grayFont">预约使用</div>
                    <{/if}>
                <{else if $item.type eq 2}><{*项目券*}>
                    <div class="fontSizeM grayFont">车辆：<{$item.bindInfo}></div>
                <{/if}>
            <{else}>
                <div class="fontSizeM grayFont">券号：<{$item.code}></div>
            <{/if}>
        </div>
    </div>
    <{if $item.status eq $CODE_STATUS_USED or $item.status eq $CODE_STATUS_OUTDATE or $item.totalNum <=1}>
    <{else}>
        <span class="Cardnub"><i><{$item.totalNum}>张</i></span>
    <{/if}>
</li>

<{/foreach}>